<template>
  <div class="son">
    <h2>child2</h2>
    <h4>玩具: {{ monster }}</h4>
    <h4>书籍: {{ book }}本</h4>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
let monster = ref('怪物')
let book = ref(6)

defineExpose({monster, book})

</script>

<style scoped>
  .son {
    background: pink;
  }
</style>

